<?php
class ToolbarFeedbacks extends CWidget {
    public function run() {
        $node = Yii::app()->request->getParam('node');
        $items = array(
            Yii::t('common', 'index') => array('index', 'node' => $node, 'type' => 'all'),
            Yii::t('feedback', 'replied_feedbacks') => array('index', 'node' => $node, 'type' => 'replied'),
            Yii::t('feedback', 'unreplied_feedbacks') => array('index', 'node' => $node, 'type' => 'unreplied'),
        );
        $this->render('ToolbarFeedbacks', array('items' => $items));
    }
}
